<?php
namespace Admin\Controller;
use Think\Controller;
class CommonController extends Controller {

	public function _initialize (){
		
		//验证是否登录
		if(!isset($_SESSION['admin']['id'])|| empty($_SESSION['admin']['id'])){
			$this->redirect("/Admin/Login/login");
			exit;
		}
		
	}
	//空方法
	public function _empty(){
		$this->display("Public/404");
	}   
}